$(function () {
    const id = location.href.split('=')[1];

    // 请求文章数据
    const url = '/admin/article/search';
    ajax('get', url, {
        id
    }).then(res => {
        console.log(res)
        let data = [res.data];
        const ele = template('articleForm', {
            data
        })
        $('#form').html(ele);
    })
})

function changeCoverImage() {

}